package main

import (
	"bufio"
	. "fmt"
)

func main() {
	data := []byte("北京欢迎你\n")
	oneline := []byte("hello world 欢 迎 北 京 ")
	Println(data, len(data))
	Println(bufio.ScanBytes(data, false))
	Println(bufio.ScanLines(data, false))
	Println(oneline, len(oneline))
	Println(bufio.ScanWords(oneline, false))
}
